#ifndef APP_CAN_H
#define APP_CAN_H

#include <stdint.h>
#include "gd32f30x_can.h"


typedef struct CAN_DATA_FORMAT_TAG
{
    uint32_t id; /*!<identifier */
    uint8_t ide; /*!< 0:standard format frame identifier;!0:extended identifier,  */
    uint8_t rx_len;
    uint8_t rx_data[8];
} CAN_DATA_FORMAT_T;





extern inline void DRV_CANBUS_RECEIVE_Interrupt(can_receive_message_struct frame);

extern void app_can_recv(void);

extern void app_can_send(void);

#endif

